<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main extends CI_Controller {
	public function index() {
		$login = $this->session->userdata('login');

		if (isset($login->status) && $login->status === true) {
			$this->load->view('default');
		} else {
			$this->load->view('login');
		}
	}
}